<?php
$this->breadcrumbs = array(
    //'Thể loại' => array('index'),
    $model->name,
);
?>

<div class="prepend-1 span-6">
    <?php $this->beginWidget('zii.widgets.CPortlet',
            array('title' => 'Thể loại')); ?>
    <?php $this->renderPartial('/category/index'); ?>
    <?php $this->endWidget(); ?>
    <?php
    if(Yii::app()->user->isGuest) {
        echo CHtml::link(('Đăng ký'),array('/user/registration'));
    } else {
        $this->beginWidget('zii.widgets.CPortlet',
            array('title' => 'Giỏ hàng'));
        $this->renderPartial('/Cart/index');
        $this->endWidget();
    }
    ?>
</div>


<div id="shopcontent" class="span-16 last">
    <h1> <?php echo $model->name; ?></h1>

    <?php
    foreach ($model->Products as $product) {
        $this->renderPartial('/product/_view', array('data' => $product));
    }
    ?>

</div>

<div class="clear"> </div>




